﻿using System;
using Microsoft.Extensions.DependencyInjection;

namespace ATSSDK;

public static class ServiceCollectionExtensions
{
    public static IServiceCollection AddAtsSdk(this IServiceCollection services, Action<ATSOptions> builder)
    {
        services.Configure<ATSOptions>(builder);

        services.AddSingleton<IATSClient, DefaultATSClient>();

        return services;
    }
}
